import {
	request,
	baseUrl
} from "../request.js"

/**
 * 1，搜索有关联的对象
 * @param {Object} searchName
 * @param {Object} searchType
 */
export function searchByFriend(searchName, searchType) {
	return request({
		url: baseUrl + '/search/searchByFriend',
		method: 'POST',
		data: {
			userId: uni.getStorageSync('userId'),
			searchName,
			searchType
		}
	})
}